package com.wits.qso.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.wits.platform.dao.impl.BaseDaoImpl;
import com.wits.platform.entity.Employee;
import com.wits.qso.dao.custom.TtablehDaoCustom;
import com.wits.qso.entity.BtableH;
import com.wits.qso.entity.Course;
import com.wits.qso.entity.TtableH;

@Component
public class TtablehDaoImpl extends BaseDaoImpl<TtableH, String> implements TtablehDaoCustom {

	@Override
	public List<Employee> findEmployees() {
		String strSql = " select * from wits_employee ";
		return em.createNativeQuery(strSql,Employee.class).getResultList();
	}
	@Override
	public List<Course> findCourses(){
		String strSql = " select * from qso_course ";
		return em.createNativeQuery(strSql,Course.class).getResultList();
	}
	@Override
	public List<BtableH> findBtables(){
		String strSql = " select * from qso_btable_h ";
		return em.createNativeQuery(strSql,BtableH.class).getResultList();
	}
	
}
